let color = localStorage.getItem('color') || ''
let outer = window.parent.document.querySelector('.flushed')
// console.log(waibu)
// window.addEventListener('storage',()=>{

// })
document.querySelector('.pageColor input').addEventListener('change',function(){
  localStorage.setItem('color', this.value)
  outer.click()
})
// document.querySelector('.save').addEventListener('click', function () {
//   let colors = document.querySelector('.pageColor input')
//   localStorage.setItem('color', colors.value)
//   outer.click()
//   console.log(outer.src)
// })

function colorSx() {
  let colors = localStorage.getItem('color')
  document.documentElement.style.setProperty('--themeColor', colors)
}
colorSx()
document.addEventListener('click', colorSx);